package org.yefei.homeworkday15.three;

public class TestAviator {

	public static void main(String[] args) {
		Aviator a = new Aviator("老张", 22);
		AirPlane l = new Airliner(200000, 20000, "客机", 3000);
		a.drivePlane(l);
		System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>");
		AirPlane w = new Warcraft(18000, 30000, "战机", 400);
		a.drivePlane(w);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		Airliner o = (Airliner) l;
		o.pickUp();
		System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
		Warcraft ww = (Warcraft) w;
		ww.lanch();
		ww.dirveCircle();
//		AirPlane l = new Airliner(200000, 20000, "客机", 3000);
//		new Aviator("老张", 22).drivePlane(l);
	}

}
